home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXT Education Software Sampler 1992 Fall
/
NeXT Education Software Sampler 1992 Fall.iso
/
Programming
/
Source
/
IP_Graph3D
/
FourSidedPolygon.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-17
|
415 b
|
33 lines
#import <objc/Object.h>
struct Point3D
{
float x,y,z;
};
typedef struct Color
{
float r,g,b;
} RGBcolor;
typedef struct Point3D point3D;
typedef struct Point3D vector3D;
@interface FourSidedPolygon:Object
{
point3D vertex[4];
vector normal1, normal2;
RGBcolor topColor;
RGBcolor bottomColor;
BOOL viewingTop1, viewingTop2;
BOOL visible1,visible2;
}
- init;
- drawSelf;
- calculateNormal;
@end